import axios from '@/utils/axios'

/**
 * 根据课程id和课时id分页获取预约列表(分页)
 */
export function getTimePage(params) {
  return axios({
    url: '/student-course/page/' + params.id,
    method: 'get',
    params
  })
}

/**
 * 根据课程id和课时id分页获取预约列表(不分页)
 */
export function getTimeList(params) {
  return axios({
    url: '/student-course/list/' + params.id,
    method: 'get',
    params
  })
}

/**
 * 根据课程id获取上课时间
 */
export function getTimeByCourseId(id) {
  return axios({
    url: '/course/time/c_' + id,
    method: 'get'
  })
}
